import 'package:get/get_navigation/src/routes/get_route.dart';
import 'package:management_system/pages/home/home.dart';
import 'package:management_system/pages/login.dart';
import 'package:management_system/pages/register.dart';

import '../pages/dashboard/dashboard.dart';

class RouterUtil extends RoutePath {
  ///main 路由注册列表
  static List<GetPage> routerList = [
    GetPage(name: RoutePath.login, page: () => const LoginPage()),
    GetPage(name: RoutePath.register, page: () => const RegisterPage()),
    GetPage(name: RoutePath.home, page: () => const HomePage(), children: [
      GetPage(name: RoutePath.dashboard, page: () => const DashboardPage()),
    ]),
  ];
}

abstract class RoutePath {
  static const login = "/login";
  static const register = "/register";
  static const home = "/main";
  static const dashboard = "/dashboard";
}
